<template>

  <div class="home">
    <div class="home-search">
      <div class="home-icon">
        <van-icon name="user-o" />
        <van-icon name="like-o" />
        <van-icon name="setting-o" />
      </div>
      <router-link to="search">
        <van-icon name="search" />
      </router-link>
    </div>
    <div class="siwpe">
      <img src="../assets/img/siwpeimg.jpg" alt="">
    </div>
    <div class="nav">
      <ul>
        <router-link to="fenlei">
          <li>分 类</li>
        </router-link>
        <router-link to="bangdan">
          <li>榜 单</li>
        </router-link>
        <router-link to="shuku">
          <li>推荐书库</li>
        </router-link>
      </ul>

    </div>
    <router-view></router-view>
  </div>

</template>

<style lang="less">
.home {
  overflow: hidden;
  padding-top: 268px;
  .siwpe {
    margin-bottom: 30px;
    position: fixed;
    top: 52px;
    img {
      width: 375px;
      height: 190px;
      transform: translateY(-5px);
    }
  }

  .home-search {
    width: 100%;
    position: fixed;
    top: 0;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    background-color: turquoise;
    color: white;
    font-weight: bold;
    .home-icon{
      i{
        margin-left: 10px;
      }
    }
    i {
      transform: translateY(4px);
      font-weight: bold;
    }
  }

  .nav {
    position: fixed;
    top: 220px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 10px 10px;
    background-color: turquoise;

    ul {
      display: flex;
      justify-content: space-around;
      width: 90%;

      li {
        background-color: white;
        padding: 5px 15px;
        border-radius: 10px;
        font-size: 18px;
        border-bottom: 5px solid rgba(100, 100, 100, 1);
      }
    }

  }

}
</style>

<script>

</script>
